traverse
Returns an Either of a list of B results of applying the given transform function to each element(A) in the original collection.
Returns an Option of a list of B results of applying the given transform function to each element(A) in the original collection.
Map a function that returns an Either across the NonEmptyList.
The first Left result from calling the function will be the result, or if no calls result in a Left the result will be a Right(NonEmptyList) of all the B's returned.
Map a function that returns an Option across the NonEmptyList.
The first None result from calling the function will be the result, or if no calls result in a None the result will be a Some(NonEmptyList) of all the B's returned.
Map a function that returns an Either across the Option.
If the option is a None, return a Right(None). If the option is a Some, apply f to the value. If f returns a Right, wrap the result in a Some.
Map a function that returns an Iterable across the Option.
If the option is a None, return an empty List If the option is a Some, apply f to the value and wrap the result in a Some.